package com.bitdf.txing.users.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.bitdf.txing.common.entity.BaseEntity;
import com.lemon.util.anno.MysqlColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Null;

/**
 * 
 * 
 * @author Lizhiwei
 * @email 123@qq.com
 * @date 2022-09-05 11:22:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tx_ums_user")
public class UserEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 *  用户角色id
	 */
	@MysqlColumn(comment = "用户角色id", defaultValue = "1")
	private Long roleId;
	/**
	 * 用户名
	 */
	@MysqlColumn(comment = "用户名")
	private String userName;
	/**
	 * 密码
	 */
	@MysqlColumn(comment = "密码")
	private String password;
	/**
	 * 昵称
	 */
	@MysqlColumn(comment = "昵称")
	private String nickName;
	/**
	 * 手机号
	 */
	@MysqlColumn(comment = "手机号")
	private String phone;
	/**
	 * 邮箱
	 */
	@MysqlColumn(comment = "邮箱")
	private String email;
	/**
	 * 头像
	 */
	@MysqlColumn(comment = "头像")
	private String header;
	/**
	 * 性别
	 */
	@MysqlColumn(comment = "性别")
	private Integer sex;
	/**
	 * 生日
	 */
	@MysqlColumn(comment = "生日")
	private Date birth;
	/**
	 * 所在城市
	 */
	@MysqlColumn(comment = "所在城市")
	private String city;
	/**
	 * 职业
	 */
	@MysqlColumn(comment = "职业")
	private String job;
	/**
	 * 个性签名
	 */
	@MysqlColumn(comment = "个性签名")
	private String sign;
	/**
	 * 积分
	 */
	@MysqlColumn(comment = "积分")
	private Integer integration;
	/**
	 * 公司或学校
	 */
	@MysqlColumn(comment = "公司或学校")
	private String unit;
	/**
	 * 学院
	 */
	@MysqlColumn(comment = "学院")
	private String institute;
	/**
	 * 专业
	 */
	@MysqlColumn(comment = "专业")
	private String major;
	/**
	 * 社交用户的唯一id
	 */
	@MysqlColumn(comment = "社交用户唯一id")
	private String socialUid;
	/**
	 * 访问令牌
	 */
	@MysqlColumn(comment = "访问令牌")
	private String accessToken;
	/**
	 * 访问令牌的时间
	 */
	@MysqlColumn(comment = "访问令牌的时间")
	private String expiresIn;
}
